package uml.behavioral.command;

/**
 * 命令--具体命令的执行者<br>
 * on 2023/1/2 20:34
 */
public class CommandInvoker {
    private Command command;

    public void setCommand(Command command) {
        this.command = command;
    }

    public void invoke() {
        this.command.execute();
    }
}
